package com.lv.xulin.demopro;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.widget.RelativeLayout;

import com.lv.tools.view.PorterDuffView;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by Xulin on 2017/4/10.
 * 渲染模式
 */

public class XfermodeActivity extends Activity {
    @Bind(R.id.pdvShow)
    PorterDuffView pdvShow;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xfermode);
        ButterKnife.bind(this);
        //Message pic
        Bitmap bitmap1 =BitmapFactory.decodeResource(getResources(), R.mipmap.poter);
        pdvShow.setImageBitmap(pdvShow.getBitmap(bitmap1,XfermodeActivity.this));
    }
}
